/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dialog;

import main.Demo;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import javax.swing.JDialog;

/**
 *
 * @author phat10130059
 */
public class ShowImageDialog extends JDialog {

    public ShowImage showImage;

    public ShowImageDialog(String image, String filePath) {



        setTitle("Image");

        showImage = new ShowImage(this, image, filePath);
//        runBlockWindow.isRunning = true;

        setSize(800,620);

        add(showImage);
        setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        setModalityType(ModalityType.APPLICATION_MODAL);
        
        setLocationRelativeTo(null);
        setResizable(false);
        
        
        

//        this.jFrame.setVisible(false);

    }
}
